﻿using System;
using System.Collections.Generic;
using System.Text;
using DevExpress.Web.ASPxGridView;

namespace OT.Dev
{
    public class GridColumnUtility
    {
        // 表格列有10种风格,类继承如下
        // GridViewColumn
        //      *GridViewCommandColumn
        //      *GridViewDataColumn
        //          GridViewEditDataColumn
        //              *GridViewDataComboBoxColumn
        //              *GridViewDataButtonEditColumn
        //              *GridViewDataCheckColumn
        //              *GridViewDataDateColumn
        //              *GridViewDataHyperLinkColumn
        //              *GridViewDataMemoColumn
        //              *GridViewDataSpinEditColumn
        //              *GridViewDataTextColumn

        #region GetColumnInfo

        static public void GetColumnInfo(GridViewColumn column, ColumnItem item)
        {
        }

        #endregion

        #region SetCaptionNowrap

        static public void SetCaptionNowrap(GridViewColumn column)
        {
            if (column is GridViewDataColumn)
                (column as GridViewDataColumn).EditFormCaptionStyle.Wrap = DevExpress.Web.ASPxClasses.DefaultBoolean.False;
        }

        #endregion
    }

    public class ColumnItem
    {
        public string FieldName;
    }

}
